package com.kx.user.client;

import com.kx.base.dto.file.QRCodeDTO;
import com.kx.base.dto.file.ZoomDTO;
import com.kx.base.result.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用于调用file-service接口的类
 *
 * @Author Sun
 * @Date 2021/7/25 20:52
 */
@FeignClient(value = "file-service")
public interface FileClient {

    @PostMapping("kx/file/zoom")
    R uploadZoomImage(@RequestBody ZoomDTO zoomDTO);

    @PostMapping("kx/file/qrCode")
    R qrCode(@RequestBody QRCodeDTO qrCodeDTO);
}
